const Mock = require('mockjs')
const data = Mock.mock({
	'dataList': [{
		path: '/form',
		component: 'Layout',
		name:'Corm',
		meta:{},
		children: [{
			path: 'index',
			name: 'Form',
			component: '/form/index',
			meta: {
				title: 'Form',
				icon: 'form'
			},
			children:null
		}]
	}]
})

module.exports = [
  {
    url: '/vue-admin-template/router/list',
    type: 'get',
    response: config => {
      const items = data.dataList
      return {
        code: 20000,
        data: {
          total: items.length,
          dataList: items
        }
      }
    }
  }
]